

import './index.less';

const ipc = window.electron;
const PrintPage = ({ data }) => {
    const handleLoad = () => {
        ipc.send('printLoad');
    }
    return (
        <div style={{
            height: '100vh',
            width: '100vw',
            overflow: 'hidden',
            lineHeight: 0,
        }}>
            <img
                className="print-img-q"
                style={{
                    display: 'block',
                    // transform: 'translate(0,-15%)'
                }}
                onLoad={handleLoad}
                src={data.url}
                // src={'http://mzydz-manhu.oss-cn-shanghai.aliyuncs.com/aiimg/03-21-13-05.png'}
                alt="" />
        </div>
    )
}
// http://mzydz-manhu.oss-cn-shanghai.aliyuncs.com/aiimg/03-21-13-05.png
// http://mzydz-manhu.oss-cn-shanghai.aliyuncs.com/aiimg/03-21-13-05.png
export default PrintPage;